package com.sxhalo.fsms.mapper;

import com.sxhalo.fsms.domain.FactDeviceSpecificAttr;
import com.sxhalo.fsms.domain.FactDeviceSpecificAttrKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FactDeviceSpecificAttrMapper {
    int deleteByPrimaryKey(FactDeviceSpecificAttrKey key);

    int insert(FactDeviceSpecificAttr record);

    int insertSelective(FactDeviceSpecificAttr record);

    FactDeviceSpecificAttr selectByPrimaryKey(FactDeviceSpecificAttrKey key);

    int updateByPrimaryKeySelective(FactDeviceSpecificAttr record);

    int updateByPrimaryKey(FactDeviceSpecificAttr record);

    int deleteByWhere(@Param("where")String where);
    int getCount(@Param("where")String where);

    List<FactDeviceSpecificAttr> findWhereList(@Param("where")String where, @Param("order")String order);

    List<FactDeviceSpecificAttr> findPagerList(@Param("start")Integer start, @Param("length")Integer length, @Param("where")String where, @Param("order")String order);

    int batchInsert(@Param("record") FactDeviceSpecificAttr record,@Param("ids")  String ids);
    int  insertOrUpdate(FactDeviceSpecificAttr record);

}